package com.aaa.service;

import com.aaa.entity.CheckItem;
import com.aaa.entity.User;
import com.aaa.vo.Result;
import com.aaa.vo.UserVo;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

public interface UserService {

    User findByUsername(String username);

    Result<User> getInfo();

    Result<IPage<User>> searchUser(Integer currentPage, Integer pageSize, UserVo userVo);

    List<User> queryUserNeedScheduling(Map<String, Object> map);

    List<User> initUser();

    User queryUserByPhone(Long phone);

    Result<String> reg(User user);

    Result<String> addOrUpdUser(User user);

    Result<User> queryById(Long id);

    Result<String> loginOut();

    Result<String> add();

    Result<String> updPass(String oldPass, String newPass);

    Result<String> retPass(Long[] uid);
}
